﻿@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@*<script type="text/javascript">
    $(function () {
        //high light li(0)
        $("div#SiteIndex ul li:eq(0) a").addClass("xt");
    });
</script>*@

<script type="text/javascript">
    $(function () {
        $("#validatecodeimg").hip();
    });
</script>

@using (Html.BeginForm("LogIn", "User", FormMethod.Post, null))
{
    <div class="login">
        <div class="register">
            <p class="register_a">
                <a title="立即注册" href="@Url.Action("Register", "Customer", null)"></a>
            </p>
            <span><a title="" href="@Url.Action("Index", "home", null)">返回首页</a> <a title=""
                href="/help" target="_blank">帮助页面</a> </span>
        </div>
        <div class="dl">
            <table>
                <tbody>
                    <tr>
                        <td class="l">
                            会员帐号
                        </td>
                        <td>
                            <input name="userName" id="userName" type="text" class="" onfocus="this.className='on'"
                                onblur="this.className=''" />
                        </td>
                    </tr>
                    <tr>
                        <td class="l">
                            会员密码
                        </td>
                        <td>
                            <input name="pwd" id="password" type="password" class="" onfocus="this.className='on'"
                                onblur="this.className=''" maxlength="30" />
                        </td>
                    </tr>
                    <tr>
                        <td class="l">
                            随机码
                        </td>
                        <td>
                            <input name="validCode" id="validatecode" type="text" class="validatecode" />
                            <img id="validatecodeimg" src="@Url.Action("GetValidateCode", "Widget")" alt="hip code" title="看不清？点击换一张" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                            <a href="/user/forgotpwd">？找回密码</a>
                        </td>
                    </tr>
                </tbody>
            </table>
            <div class="join">
                <!--<input name="userJoin" id="userJoin" type="button" class="ui-icons join_position demo_button"
                        value="会员注册" />-->
                <input name="ReturnUrl" type="hidden" value="@ViewBag.ReturnUrl" />
                <input name="submitBtn" id="submitBtn" type="submit" class="ui-icons submit_position demo_button"
                    value="登 录" />
            </div>
        </div>
    </div>
}
